module.exports = {
    devServer:{
      proxy: {
         "/api": {
         target: "http://localhost:7001",
         changeOrigin:true
         }
       }
    },
    css: {
      loaderOptions: {
        scss: {
          // eslint-disable-next-line quotes
          prependData: `@import "~@/assets/scss/index.scss";`
        },
        postcss: {
          plugins: [
            require('postcss-px2rem')({
              remUnit: 100
            })
          ]
        }
      }
    },
    configureWebpack:{
      externals: {
        AMap:'AMap',
        AMapUI:'AMapUI'
      }
    }
  }